import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

// 引入全局样式
import '@/assets/style/reset.css'
import '@/assets/style/public.css'
// 特别注意Message消息提示组件需要单独引入样式
import 'element-plus/es/components/message/style/css'

const app = createApp(App)

// 引入全局方法
import * as utils from '@/utils'
app.config.globalProperties.$utils = utils

app.use(createPinia())
app.use(router)

app.mount('#app')
